using System;
using System.Data;
using System.Collections.Generic;
using System.Collections;
using log4net;
using FSS.BLL.Entities;
namespace FSS.BLL.Services
{
	#region ModuleService

	/// <summary>
	/// ModuleService object for Ibatis mapped table 'Module'.
	/// </summary>
	public class ModuleService : IModuleService
	{
		private static readonly ILog log = LogManager.GetLogger(typeof(ModuleService).Name);
	  	private static volatile ModuleService _ModuleService = null;
        public static ModuleService GetInstance()
        {
            if (_ModuleService == null)
            {
                lock (typeof(ModuleService))
                {
                    if (_ModuleService == null) // double-check
                        _ModuleService = new ModuleService();
                }
            }
            return _ModuleService;
        }
		public ModuleService()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public IList<ModuleEntity> LoadModuleHasChild(ModuleEntity objE)
        {
            try
            {
                return ExecuteQueryForList<ModuleEntity>("ModuleLoadHasChild", objE);
            }
            catch (Exception ex)
            {
                log.Debug(ex.Message);
                return null;
            }
        }
	}
	#endregion  
}
